home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / Preference Example / setupFunScript.r < prev    next >
Encoding:
Text File  |  1994-11-15  |  2.7 KB  |  116 lines  |  [TEXT/MPS ]

  1. include "SetupFunction";
  2.  
  3. #include "InstallerTypes.r"
  4.  
  5.  
  6. /************************** Target File Spec. resources **********************************/
  7. // target file spec for TeachText application
  8. resource 'intf' (10000) {
  9.     format1 {
  10.         noSearchForFile,                 // use default search path
  11.         
  12.         TypeCrMustMatch,                 // If this is set to TypeCrMustMatch
  13.                                         // then a file with a different type
  14.                                         // and creator than those specified
  15.                                         // below will not be replaced.
  16.                                         // If this is set to TypeCrNeedNotMatch
  17.                                         // then type and creator of an existing
  18.                                         // target file are ignored.
  19.         
  20.         // The Type and Creator fields will be used to set the
  21.         // file's Type and Creator when a new file is created. 
  22.         'APPL',                         // TYPE for new file
  23.         'ttxt',                         // CREATOR for new file
  24.         
  25.         0,                                 // finder attribute flags
  26.                                         // filled by ScriptCheck is value is 0
  27.         
  28.         1,                                  // creation date for new file
  29.         1,                                  // modification date for new file
  30.                                         // NOTE: DATE values are filled
  31.                                         // by ScriptCheck if the value is 1
  32.                                             
  33.         0,                                 // search proc ID ( 'insp' ), none used
  34.         
  35.         "folder-user:TeachText"
  36.         }
  37.     };
  38.  
  39. /************************** Source File Spec. resources **********************************/
  40. resource 'infs' (20000) {
  41.     'APPL',
  42.     'ttxt',
  43.     0x1,
  44.     noSearchForFile,
  45.     TypeCrMustMatch,
  46.     "Tidbits:TeachText"
  47. };
  48.  
  49. /************************** File Atom resource **********************************/
  50. resource 'infa' (10000) {
  51.     format1 {
  52.         deleteWhenRemoving,
  53.         deleteWhenInstalling,
  54.         copy,
  55.         dontIgnoreLockedFile,
  56.         dontSetFileLocked,
  57.         useVersProcToCompare,
  58.         srcNeedExist,
  59.         rsrcForkInRsrcFork,
  60.         leaveAloneIfNewer,
  61.         updateExisting,
  62.         copyIfNewOrUpdate,
  63.         rsrcFork,
  64.         dataFork,
  65.         0,
  66.         0,
  67.         10000,
  68.         {    20000, 0, 0
  69.         },
  70.         0x0,
  71.         0,
  72.         0,
  73.         ""
  74.     }
  75. };
  76.  
  77. /************************** Package resource **********************************/
  78. resource 'inpk' (20037) {
  79.     format0 {
  80.         showsOnCustom,
  81.         notRemovable,
  82.         dontForceRestart,
  83.         0,
  84.         0,
  85.         "TeachText",
  86.         {    
  87.             'infa', 10000,
  88.         }
  89.     }
  90. };
  91.  
  92. /************************** Preference resource **********************************/
  93. resource 'inpr' (300) {
  94.     format0 {
  95.         useFolderTargetMode,            // Tells the Installer which interface to use, 
  96.                                         // either disk based or folder based
  97.                                         
  98.         dontAllowUserToSetSystemDisk,    // Restricts user from changing System Disk
  99.         showSelectedSizeInCustom,
  100.         setupFunctionSupplied,            // Tells Installer to call Setup Function
  101.         dontAllowCleanInstall,
  102.         dontAllowServerAsTarget,
  103.         'infn',                            // Setup Function code resource type
  104.         147,                            // Setup Function code resource ID
  105.         {    /* array helpPagelist: 2 elements */
  106.             /* [1] */    301, 311, 301, 311,
  107.             /* [2] */    302, 312, 302, 312
  108.         },
  109.         "Demo App Folder"        // Default Target Folder name
  110.     }
  111. };
  112.  
  113.  
  114.  
  115.  
  116.